<?php
/**
 *Template Name: News template
 */
get_header();
$pageId = $post->ID;
$page 	= get_page($pageId);
?>
        <div id="mainContent">
            <div class="container_12">
                <div class="GrayBack01 M80top">                    
                    <div class="grid_8">
                        <div class="Content01">
                            <h2><?php echo $page->post_title;?></h2>
                            <?php 				
								if (has_post_thumbnail( $pageId )){
									$image = wp_get_attachment_image_src( get_post_thumbnail_id( $pageId ), 'single-post-thumbnail' );
									echo '<img class="imgTemp" src="'.$image[0].'" alt="" />';
								}
								$page = apply_filters('the_content',$page->post_content);				
								echo '<p>'.$page.'</p>';
							?>                            
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
            
        </div> 
<?php get_footer(); ?>    